<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path=request.getContextPath();
%>    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
	<link href="/css/bootstrap-4.3.1/css/bootstrap.css"  rel="stylesheet">
	<script type="text/javascript" src="/js/jquery-3.2.1/jquery.js"></script>
	<script type="text/javascript" src="/js/jqueryvalidate/jquery.validate.js"></script>
	<script type="text/javascript" src="/js/jqueryvalidate/localization/messages_zh.js"></script>
	<script type="text/javascript" src="/js/jquery.form.js"></script>
	
	<script type="text/javascript" src="/css/bootstrap-4.3.1/js/bootstrap.js"></script>

</head>
<body>

		<table>
			<tr>
				<td>编号</td>
				<td>商品名</td>
				<td>价格</td>
				<td>销售百分比</td>
			</tr>
			<c:forEach items="${range }" var="goods">
			
				<tr>
					<td>${goods.id }</td>
					<td>${goods.name }</td>
					<td>${goods.price }</td>
					<td>${goods.selPer }</td>	
				</tr>
			
			</c:forEach>
		
		</table>
		<a href = "setList?pageNum=1">首页</a>
		<a href = "setList?pageNum=${pageNum==1?1:pageNum-1 }">上一页</a>
		<a href = "setList?pageNum=${pageNum==11?11:pageNum+1 }">下一页</a>
		<a href = "setList?pageNum=11">尾页</a>

</body>
</html>